package com.wafersystems.springbootdemo.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 应用信息配置属性绑定示例
 * @author tandk
 * @date 2018/12/13 11:35
 */
@Data
@Component
@ConfigurationProperties(prefix = "appinfo")
public class AppInfoProperties {
    private int id;

    private String name;
}
